<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//$online_domain = env('ONLINE_DOMAIN','online.app');

//Route::get('/', function () {
//    return view('welcome');
//});

Route::group([
    'middleware' => [],
//    'domain'     => $online_domain,
],function(){
//    Route::any('twitter','TestController@redirectToProvider');
//    Route::any('twitter/callback','TestController@twitterCallback');
//    Route::any('github','TestController@githubToProvider');
//    Route::post('github/callback','TestController@handleProviderCallback');
//    Route::any('facebook','TestController@facebookToProvider');
//    Route::post('facebook/callback','TestController@facebookCallback');
//    Route::any('google','TestController@googleToProvider');
//    Route::any('google/callback','TestController@googleCallback');
    Route::any('home', 'HomeController@index')->name('home');
    Route::any('/googlepage', 'HomeController@googlePage');


    Route::any('twitter','ThirdController@redirectToProvider');
    Route::get('twitter/callback','ThirdController@twitterCallback');
    Route::any('google','ThirdController@googleToProvider');
    Route::get('google/callback','ThirdController@googleCallback');
    Route::any('facebook','ThirdController@facebookToProvider');
    Route::get('facebook/callback','ThirdController@facebookCallback');

    Route::get('third_auth', 'HomeController@thirdLogin')->name('third_login');
    Route::any('confirm_email', 'HomeController@confirmEmail')->name('confirm_email');
//    confirmEmail
});



//Route::group([
//    'middleware' => [],
//    'domain'     => $online_domain,
//    'namespace'  => 'Vue'
//],function(){
//    Route::any('/','IndexController@index');
//});
Auth::routes();

//Route::get('/home', 'HomeController@index')->name('home');
